<%--
  Created by IntelliJ IDEA.
  User: wangh
  Date: 2020/12/23
  Time: 16:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>用户信息修改</title>

    <!-- 1. 导入CSS的全局样式 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="js/bootstrap.min.js"></script>
</head>
<body style="background-color: #F2F2F2">
<div class="logoBar"
     style="height: 75px;background: #1d7ad9;font-size: 35px;font-weight: bolder;padding-left: 100px;padding-top: 12px;color: white;">
    电脑销售平台
</div>
<div class="container" style="width: 400px;background-color: #ffffff;margin-top: 20px;border-radius: 10px;">
    <h3 style="text-align: center;">用户信息修改</h3>
    <form action="${pageContext.request.contextPath}/updateUserServlet?id=${updateUser_information.id}" method="post">
        <div class="form-group">
            <label for="username">用户名：</label>
            <input type="text" name="username" class="form-control" id="username" value="${updateUser_information.username}"/>
        </div>
        <div class="form-inline">
            <label for="gender">性别：</label>
            <c:if test="${updateUser_information.gender == '男'}">
                <input type="radio" id="gender" name="gender" value="男" checked/>男
                <input type="radio" id="gender" name="gender" value="女"/>女
            </c:if>
            <c:if test="${updateUser_information.gender == '女'}">
                <input type="radio" id="gender" name="gender" value="男" checked/>男
                <input type="radio" id="gender" name="gender" value="女"/>女
            </c:if>
        </div>
        <div class="form-group">
            <label for="phone">手机号：</label>
            <input type="text" name="phone" class="form-control" id="phone" value="${updateUser_information.phone}"/>
        </div>
        <div class="form-group">
            <label for="address">籍贯：</label>
            <select name="address" class="form-control" id="address">
                <c:if test="${updateUser_information.address == '浙江'}">
                    <option value="浙江" selected>浙江</option>
                    <option value="上海">上海</option>
                    <option value="台湾">台湾</option>
                    <option value="江苏">江苏</option>
                </c:if>
                <c:if test="${updateUser_information.address == '上海'}">
                    <option value="浙江">浙江</option>
                    <option value="上海" selected>上海</option>
                    <option value="台湾">台湾</option>
                    <option value="江苏">江苏</option>
                </c:if>
                <c:if test="${updateUser_information.address == '台湾'}">
                    <option value="浙江">浙江</option>
                    <option value="上海">上海</option>
                    <option value="台湾" selected>台湾</option>
                    <option value="江苏">江苏</option>
                </c:if>
                <c:if test="${updateUser_information.address == '江苏'}">
                    <option value="浙江">浙江</option>
                    <option value="上海">上海</option>
                    <option value="台湾">台湾</option>
                    <option value="江苏" selected>江苏</option>
                </c:if>
            </select>
        </div>
        <div class="form-group" style="text-align: center;margin-top: 10px;">
            <input class="btn btn btn-primary" type="submit" value="提交">
            <input class="btn btn btn-primary" type="reset" value="重置">
        </div>
    </form>
    <div class="alert alert-warning alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
        <strong>提示信息:</strong>${updateUser_info}
    </div>
</div>
</body>
</html>
